import java.awt.*;
import javax.swing.*;
import java.awt.event.*;

public class VentanaPrincipal extends JFrame{

	private Image image;
	
	public VentanaPrincipal()
	{
		super();
		this.setSize(800, 600);
		Panel pan = new Panel("fondo java.png");
		this.add(pan, BorderLayout.CENTER);
		JLabel etiqueta = new JLabel("Etqiueta");
		etiqueta.setBounds(300, 200, 100, 100);
		JButton boton = new JButton("Procesar");
		boton.setBounds(300, 300, 200, 50);
		pan.add(etiqueta);
		pan.add(boton);
	}
	
	public static void main(String H[])
	{
		VentanaPrincipal p = new VentanaPrincipal();
		p.setVisible(true);
		p.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
	}
}
